package com.my.commonlib.net.okgo;

import android.content.Context;
import android.support.annotation.Nullable;

import com.lzy.okgo.request.BaseRequest;

import okhttp3.Response;


public abstract class MyByteCallback extends ByteBaseCallback{
    private Context mContext;
    public MyByteCallback(Context context) {
        this.mContext = context;
    }

    @Override
    public void onBefore(BaseRequest request) {
        super.onBefore(request);
        //网络请求前显示对话框

    }

    @Override
    public void onAfter(@Nullable byte[] bytes, @Nullable Exception e) {
        super.onAfter(bytes, e);
    }

    @Override
    public byte[] convertSuccess(Response response) throws Exception {
        return super.convertSuccess(response);
    }
}
